package models

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/postgres"
)


type BaseModel struct{
	id unit `gorm:"type:int;primary_key;not null;auto_increase"`
}

type users struct{
	BaseModel
	name string `gorm:"varchar(50);not null"`
	passwd string `gorm:"text;not null"`
}





